<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
	</head>
	<body>
		<input type="file" id="up" multiple />
		<script>
			var up = document.getElementById("up")
			up.onchange = function(res) {
				let fs = up.files;
				var forms = new FormData()
				forms.append('file', fs[0])
				console.log(fs[0])
				axios({
					url: 'http://192.168.1.166:3000/upload',
					method: 'post',
					headers: {
						"Content-Type": "multipart/form-data;"
					},
					data: forms,
					success: (res) => {
						console.log(res)
					}
				}).then(res => {
					console.log(res)
				})
			}
		</script>
	</body>
</html>
